﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;

namespace MyExtendProject.Editors.Region
{
    [Export(typeof(ITaggerProvider))]
    [TagType(typeof(IOutliningRegionTag))]
    [ContentType("javascript")]
    internal sealed class RegionTaggerProvider : ITaggerProvider
    {
        // Token: 0x0600000C RID: 12 RVA: 0x0000215C File Offset: 0x0000035C
        public ITagger<T> CreateTagger<T>(ITextBuffer buffer) where T : ITag
        {
            return buffer.Properties.GetOrCreateSingletonProperty<RegionTagger>(() => new RegionTagger(buffer)) as ITagger<T>;
        }
    }
}
